package com.erlinyou.im.web.controller.push;

import net.sf.json.JSONObject;

public class VoipPushTest {
	public static void main(String[] args) throws Exception 
	{
	        try
	        {
	            //从客户端获取的deviceToken，在此为了测试简单，写固定的一个测试设备标识。
	        	//277b570593afb1521b3fb3bdd43e598336aa5bc9453b5a90b4787bb8872195c9
	        	//b292da3fb200acb7d3a5091589c5b554068f1554cb51ef2972e88aae6b87e62f   55
	        	//258b2dd753386341fad8a345e32001b338be0f4cfa924308ed170664593a925d    8
	        	//f5c82a484276467f16b204548a87de6539b5b14a0e64b5299c926cdf26b79607    8apns
	           String deviceToken = "f5c82a484276467f16b204548a87de6539b5b14a0e64b5299c926cdf26b79607";
	           
	           JSONObject obj=new JSONObject();
	           obj.accumulate("content", "test");
	           PushMsgAPNS4j.pushMsg(deviceToken,"msg",obj,null,null,2);
	            
				  
	        }
	        catch (Exception ex)
	        {
	            ex.printStackTrace();
	        }
	}

}
